package com.example.star.api_service;

import com.example.star.entity.Favorite;
import com.example.star.entity.Follow;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiFollow {
    @POST("follows")
    Call<Follow> saveFollow(@Body Follow follow);
    @GET("follows")
    Call<List<Follow>> getFollows();

    @GET("follows/items-by-user")
    Call<List<Follow>> getFollowByUserName(@Query("userName") String userName);

    @DELETE("follows/delete")
    Call<Void> deleteFollow(@Query("userName") String userName, @Query("starName") String starName);

    @GET("follows/check")
    Call<Boolean> checkFollow(@Query("userName") String userName, @Query("starName") String starName);

}
